package com.luo.demo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.luo.utils.L;

import java.util.logging.Level;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        L.init(new L.Builder(this).level(Level.ALL).saveFile(true));
        //        testL();

    }


    public void testL() {
        L.OFF("OFF");
        L.SEVERE("SEVERE");
        L.WARNING("WARNING");
        L.INFO("INFO");
        L.CONFIG("CONFIG");
        L.FINE("FINE");
        L.OFF("ss", new NullPointerException("hsldkjgljag;"));
    }


    public void bt1(View view) {
        Intent intent = new Intent(this,CameraActivity.class);
        startActivity(intent);
    }

    public void bt2(View view) {
        Intent intent = new Intent(this,HtmlActivity.class);
        startActivity(intent);
    }

    public void bt3(View view) {
    }

    public void bt4(View view) {
    }

    public void bt5(View view) {
    }

    @Override
    protected void onStart() {
        super.onStart();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        System.out.println("MainActivity.onRestart");
    }

    @Override
    protected void onSaveInstanceState(Bundle outState) {
        super.onSaveInstanceState(outState);
    }

    @Override
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
        super.onRestoreInstanceState(savedInstanceState);
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }
}
